$OpenBSD: patch-ctypes_configure_cbuild_py,v 1.1.1.1 2013/06/11 22:10:46 edd Exp $

-O3 not allowed in ports builds.

--- ctypes_configure/cbuild.py.orig	Tue Jun 11 15:36:02 2013
+++ ctypes_configure/cbuild.py	Tue Jun 11 15:37:18 2013
@@ -377,7 +377,7 @@ class CCompiler:
                 self.libraries.append('m')
             if 'pthread' not in self.libraries:
                 self.libraries.append('pthread')
-            self.compile_extra += ['-O3', '-fomit-frame-pointer', '-pthread']
+            self.compile_extra += ['-fomit-frame-pointer', '-pthread']
             self.link_extra += ['-pthread']
         if sys.platform == 'win32':
             self.link_extra += ['/DEBUG'] # generate .pdb file
@@ -390,7 +390,7 @@ class CCompiler:
                 if s + 'lib' not in self.library_dirs and \
                    os.path.exists(s + 'lib'):
                     self.library_dirs.append(s + 'lib')
-            self.compile_extra += ['-O3', '-fomit-frame-pointer']
+            self.compile_extra += ['-fomit-frame-pointer']
 
         if outputfilename is None:
             self.outputfilename = py.path.local(cfilenames[0]).new(ext=ext)
